/*
 *MIT License
 *Copyright (c) 2021 fullset
 *@ClassName CollectionUtil
 *@date 2021/7/6 19:53
 *@author: pangps
 *@Description TODO
 */
package com.fs.core.util;

import java.util.Collection;

public class CollectionUtil {
    /**
     * 如果集合为空则返回true
     * @param collection
     * @return
     */
    public static boolean isEmpty(Collection<?> collection) {
        return collection == null || collection.size() == 0;
    }

    /**
     * 如果集合不为空则返回true
     * @param collection
     * @return
     */
    public static boolean isNotEmpty(Collection<?> collection) {
        return !isEmpty(collection);
    }


}
